#ifndef __PLAYER_CONTROLLER_H__
#define __PLAYER_CONTROLLER_H__

#include <Ogre.h>
#include <OIS.h>
#include <fstream>
#include "BoneData.h"
#include "PlayerModel.h"
#include "Controller.h"


using namespace Ogre;

class PlayerController:public AbstractController
{
protected://field
	PlayerModel *m_playerModel;
	Ogre::SceneManager* mSceneMgr;
public: //attribute
	PlayerModel* getPlayerModel(){return m_playerModel;}

public: //method
	virtual void AddTime(Real deltatime);

public: //cons &destroy
	PlayerController(SceneManager *sm);
	virtual ~PlayerController(){if(m_playerModel!=NULL);delete(m_playerModel);}

private:
	void Initialization();

	virtual void Send( PapaBallMsg msg );

};
#endif
